﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="ESCHOOL.admin.Search" Title="Search" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style3
        {
            width: 107%;
        }
        .style4
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        &nbsp;</p>
    <p>
        <asp:LinkButton ID="lbtnname" runat="server" onclick="lbtnname_Click">Search by 
        Name</asp:LinkButton>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:LinkButton ID="lbtnrollno" runat="server" onclick="lbtnrollno_Click">Search 
        by Roll no</asp:LinkButton>
    </p>
    <table class="style4">
        <tr>
            <td>
                <asp:Panel ID="Panel1" runat="server">
                    <table class="style4">
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Enter Name"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbname" runat="server"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="tbname" ErrorMessage="Enter only student name"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lbclass" runat="server" Text="Select Class"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddclasses" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Button ID="btnsearch" runat="server" 
                                    Text="Search" onclick="btnsearch_Click1" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
            <td>
                <asp:Panel ID="Panel2" runat="server">
                    <table class="style4">
                        <tr>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="Enter Roll no"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbrollno" runat="server"></asp:TextBox>
                                <br />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                    ControlToValidate="tbrollno" ErrorMessage="Enter valid numeric value"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lbcls" runat="server" Text="Select Class"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddcls" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <asp:Button ID="btnsrch1" runat="server" onclick="btnsrch1_Click" 
                                    Text="Search" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
<p>
        <br />
        <table class="style3">
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        onpageindexchanging="GridView1_PageIndexChanging">
                        <Columns>
                            <asp:BoundField DataField="roll_no" HeaderText="Roll No" />
                            <asp:BoundField DataField="enrollment_no" HeaderText="Enrollment No" />
                            <asp:BoundField DataField="student_name" HeaderText="Student Name" />
                            <asp:BoundField DataField="father_name" HeaderText="Father name" />
                            <asp:BoundField DataField="permanent_address" HeaderText="Address" />
                            <asp:BoundField DataField="mobile_no" HeaderText="Contact No" />
                            <asp:BoundField DataField="student_emailid" HeaderText="email id" />
                        </Columns>
                    </asp:GridView>
                    </td>
            </tr>
            </table>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
